package ch5;

public class ArcNode {
    public int adjVex;//该弧所指向的顶点位置
    public int value;//边（弧）的权值
    ArcNode nextArc;//指向下一条弧
    public ArcNode(){
        this(-1,0,null);
    }
    public ArcNode(int adjVex){
        this(adjVex,0,null);
    }
    public ArcNode(int adjVex,int value,ArcNode nextArc){
        this.value=value;
        this.adjVex=adjVex;
        this.nextArc=nextArc;
    }
    public ArcNode(int adjVex, int value) {
        this(adjVex,value,null);
    }
}
